<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鼠标悬停</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        .wrap {
            position: absolute;
            width: 1096px;
            height: 400px;
            top: calc(50% - 50px);
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        .item {
            position: relative;
            margin: 50px;
            float: left;
            margin-bottom: 100px;
        }
        
        .rectangle {
            height: 0;
            width: 114px;
            border: 100px solid rgb(128, 116, 116, .5);
            border-width: 50px;
            border-left-width: 30px;
            border-right-width: 30px;
            border-bottom-color: rgb(75, 69, 67, .7);
            border-top-color: rgb(75, 69, 67, .7);
        }
        
        .rectangle::before {
            content: '';
            position: absolute;
            top: 0px;
            left: 0px;
            width: 114px;
            height: 0;
            border: 100px solid rgb(128, 116, 116, .5);
            border-width: 50px;
            border-left-width: 30px;
            border-right-width: 30px;
            border-bottom-color: rgb(75, 69, 67, .7);
            border-top-color: rgb(75, 69, 67, .7);
            transform: rotate(60deg);
        }
        
        .rectangle::after {
            content: '';
            position: absolute;
            top: 0px;
            left: 0px;
            height: 0;
            width: 114px;
            border: 100px solid rgb(128, 116, 116, .5);
            border-width: 50px;
            border-left-width: 30px;
            border-right-width: 30px;
            border-bottom-color: rgb(75, 69, 67, .7);
            border-top-color: rgb(75, 69, 67, .7);
            transform: rotate(-60deg);
        }
        
        .content {
            position: absolute;
            width: 100px;
            height: 100px;
            border-radius: 100%;
            z-index: 9;
            top: 0;
            left: 37px;
            transition: all 2s;
        }
        
        .content:hover {
            transform: rotate(360deg);
        }
    </style>
</head>

<body>
    <div class="wrap">

    </div>
    <script>
        (function() {
            var wrap = document.getElementsByClassName('wrap')[0];
            var item = '';
            for (var i = 0; i < 8; i++) {
                if (i == 5) {
                    item += `
                <div class="item">
                    <div class="rectangle"></div>
                    <img class="content" src="img/${i+1}.png">
                </div>`;
                    continue;
                }
                item += `
                <div class="item">
                    <div class="rectangle"></div>
                    <img class="content" src="img/${i+1}.jpg">
                </div>`;
            }
            wrap.innerHTML = item;
        })()
    </script>
</body>

</html>